import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-content-from',
  templateUrl: './content-from.component.html',
  styleUrls: ['./content-from.component.css']
})
export class ContentFromComponent implements OnInit {

  showValue:number;


  //初始化的函数
  constructor() {
    this.showValue = 1;
  }

  ngOnInit() {
  }

  doClick(event:any){
    console.log(event.target.dataset.id);
    this.showValue ++;
  }
  
}
